home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / os2 / remin301.zip / REMIN300.ZIP / TEST.REM < prev    next >
Text File  |  1992-11-10  |  5KB  |  196 lines

  1. # Test file for REMIND
  2. #
  3. # Use this file to test the date calculation routines
  4. # of the REMIND program by typing:
  5. #
  6. #     ./test-rem  # From WITHIN Remind source directory!
  7.  
  8. # Test each possible case of the basic reminders.
  9.  
  10. REM MSG Every Day
  11.  
  12. REM 18 MSG Every 18th 
  13. REM 15 MSG Every 15th
  14.  
  15. REM Feb MSG February
  16. REM Jan MSG January
  17. REM March MSG March
  18.  
  19. REM 13 Jan MSG 13 Jan
  20. REM 15 Feb MSG 15 Feb
  21. REM 28 Feb MSG 28 Feb
  22. REM 29 Feb MSG 29 Feb
  23. REM 5 Mar MSG 5 Mar
  24.  
  25. REM 1990 MSG 1990
  26. REM 1991 MSG 1991
  27. REM 1992 MSG 1991
  28.  
  29. REM 1 1990 MSG 1 1990
  30. REM 29 1991 MSG 29 1991
  31. REM 29 1992 MSG 29 1992
  32. REM 16 1991 MSG 16 1991
  33.  
  34. REM Jan 1990 MSG Jan 1990
  35. REM Feb 1991 MSG Feb 1991
  36. REM Dec 1991 MSG Dec 1991
  37. REM May 1992 MSG May 1992
  38.  
  39. REM 1 Jan 1991 MSG 1 Jan 1991
  40. REM 16 Feb 1991 MSG 16 Feb 1991
  41. REM 29 Dec 1992 MSG 29 Dec 1992
  42.  
  43. REM Sun MSG Sun
  44. REM Fri Sat Tue MSG Fri Sat Tue
  45.  
  46. REM Sun 16 MSG Sun 16
  47. REM Mon Tue Wed Thu Fri 1 MSG Mon Tue Wed Thu Fri 1
  48.  
  49. REM Sun Feb MSG Sun Feb
  50. REM Mon Tue March MSG Mon Tue March
  51.  
  52. REM Sun 16 Feb MSG Sun 16 Feb
  53. REM Mon Tue 10 March MSG Mon Tue 10 March
  54.  
  55. REM Sat Sun 1991 MSG Sat Sun 1991
  56. REM Mon Tue 1992 MSG Mon Tue 1992
  57.  
  58. REM Sun 16 1991 MSG Sun 16 1991
  59. REM Mon Tue Wed Thu Fri 1 1992 MSG Mon Tue Wed Thu Fri 1 1992
  60.  
  61. REM Mon Feb 1991 MSG Mon Feb 1991
  62. REM Tue Jan 1992 MSG Tue Jan 1992
  63.  
  64. REM Sun Mon 16 Feb 1991 MSG Sun Mon 16 Feb 1991
  65. REM Tue 28 Jan 1992 MSG Tue 28 Jan 1992
  66.  
  67. # Try some Backs
  68. CLEAR-OMIT-CONTEXT
  69. REM 1 -1 OMIT sat sun MSG 1 -1 OMIT Sat Sun
  70. REM 1 --1 OMIT sat sun MSG 1 --1 OMIT Sat Sun
  71.  
  72. OMIT 28 Feb
  73. REM 1 -1 OMIT sat sun MSG 1 -1 OMIT Sat Sun (28 Feb omitted)
  74. REM 1 --1 OMIT sat sun MSG 1 --1 OMIT Sat Sun (28 Feb omitted)
  75.  
  76. CLEAR-OMIT-CONTEXT
  77.  
  78. # Try out UNTIL
  79. REM Wed UNTIL 21 Feb 1991 MSG Wed UNTIL 21 Feb 1991
  80.  
  81. # Try playing with the OMIT context
  82.  
  83. OMIT 28 Feb 1991
  84. REM 1 Mar -1 MSG 1 mar -1 (28feb91 omitted)
  85. REM 1 Mar --1 MSG 1 mar --1 (28Feb91 omitted)
  86. REM 28 Feb BEFORE MSG 28 Feb BEFORE (28Feb91 omitted)
  87. REM 28 Feb SKIP MSG 28 Feb SKIP (28Feb91 omitted)
  88. REM 28 Feb AFTER MSG 28 Feb AFTER (28Feb91 omitted)
  89.  
  90. PUSH-OMIT-CONTEXT
  91. CLEAR-OMIT-CONTEXT
  92. REM 1 Mar -1 MSG 1 mar -1
  93. REM 1 Mar --1 MSG 1 mar --1
  94. REM 28 Feb BEFORE MSG 28 Feb BEFORE
  95. REM 28 Feb SKIP MSG 28 Feb SKIP 
  96. REM 28 Feb AFTER MSG 28 Feb AFTER
  97.  
  98. POP-OMIT-CONTEXT
  99. REM 1 Mar -1 MSG 1 mar -1 (28feb91 omitted)
  100. REM 1 Mar --1 MSG 1 mar --1 (28Feb91 omitted)
  101. REM 28 Feb BEFORE MSG 28 Feb BEFORE (28Feb91 omitted)
  102. REM 28 Feb SKIP MSG 28 Feb SKIP (28Feb91 omitted)
  103. REM 28 Feb AFTER MSG 28 Feb AFTER (28Feb91 omitted)
  104.  
  105.  
  106. REM 13 March 1991 *1 UNTIL 19 March 1991 MSG 13-19 Mar 91
  107.  
  108. # Test BACK
  109. CLEAR-OMIT-CONTEXT
  110. REM 18 Feb 1991 +1 MSG 18 Feb 1991 +1
  111.  
  112. OMIT 17 Feb 1991
  113. REM 18 Feb 1991 +1 MSG 18 Feb 1991 +1 (17Feb91 omitted)
  114. REM 18 Feb 1991 ++1 MSG 18 Feb 1991 ++1 (17Feb91 omitted)
  115.  
  116. CLEAR-OMIT-CONTEXT
  117. set a000 abs(1)
  118. set a001 abs(-1)
  119. set a002 asc("foo")
  120. set a003 baseyr()
  121. set a004 char(66,55,66,77,66)
  122. set a005 choose(3, "foo", "bar", "baz", "blech")
  123. set a006 coerce("string", 1)
  124. set a007 coerce("string", today())
  125. set a008 coerce("string", 11:44)
  126. set a009 coerce("int", "badnews")
  127. set a010 coerce("int", "12")
  128. set a011 coerce("int", 11:44)
  129. set a012 coerce("int", today())
  130. set a013 date(1992, 2, 2)
  131. set a014 date(1993, 2, 29)
  132. set a015 day(today())
  133. set a016 daysinmon(2, 1991)
  134. set a017 daysinmon(2, 1992)
  135. set a018 defined("a017")
  136. set a019 defined("a019")
  137. set a020 filename()
  138. set a021 getenv("TEST_GETENV")
  139. set a022 hour(11:22)
  140. set a023 iif(1, 1, 0)
  141. set a024 iif(0, 1, 0)
  142. set a025 index("barfoobar", "foo")
  143. set a026 index("barfoobar", "bar", 2)
  144. set a027 isleap(today())
  145. set a028 isleap(1992)
  146. omit [trigger(today())]
  147. set a030 isomitted(today())
  148. clear
  149. set a029 isomitted(today())
  150. set a031 lower("FOOBARBAZ")
  151. set a032 max(1, 2, 34, 1, 3)
  152. set a033 max("foo", "bar", "baz")
  153. set a034 max(today(), today()+1, today()-1)
  154. set a035 min(1, 2, 34, 1, 3)
  155. set a036 min("foo", "bar", "baz")
  156. set a037 min(today(), today()+1, today()-1)
  157. set a038 minute(11:33)
  158. set a039 mon(today())
  159. set a040 monnum(today())
  160. set a041 ord(3)
  161. set a042 ord(4)
  162. set a043 ostype()
  163. set a044 plural(2)
  164. set a045 plural(2, "ies")
  165. set a046 plural(2, "y", "ies")
  166. set a047 sgn(-2)
  167. set a048 shell("echo foo")
  168. set a049 strlen("sadjflkhsldkfhsdlfjhk")
  169. set a050 substr(a049, 2)
  170. set a051 substr(a050, 2, 6)
  171. set a052 time(1+2, 3+4)
  172. rem 10 jan 1992 AT 11:22 CAL
  173. set a053 trigdate()
  174. set a054 trigtime()
  175. set a055 trigvalid()
  176. set a056 upper("sdfjhsdf ksjdfh kjsdfh ksjdfh")
  177. set a057 value("a05"+"6")
  178. set a058 version()
  179. set a059 wkday(today())
  180. set a060 wkdaynum(today())
  181. set a061 year(today())
  182. set a062 1+2*(3+4-(5*7/2))
  183. set a063 1>=2
  184. set a064 1<2 || 3 > 4
  185. set a065 1 && 1
  186. set a066 !a065
  187. set a067 typeof(2)
  188. set a068 typeof("foo")
  189. set a069 typeof(11:33)
  190. set a070 typeof(today())
  191. fset g(x,y) max(x,y)
  192. fset h(x,y) min(g(x+y, x*y), g(x-y, x/y))
  193. set a071 g(1, 2)
  194. set a072 h(2, 3)
  195. set a073 h("foo", 11:33)
  196.